﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConnectFour
{
    class HumanPlayer : Player
    {
        public HumanPlayer(Checker myColor, Board board) : base(myColor, board, null) { }

        public override void GameOver(Checker winner) { }

        public override int Move(int lastMove)
        {
            Console.Out.Write("Make your move: ");
            int move = Console.ReadLine()[0]-'0'-1;
            while (!board.Playable(move))
            {
                Console.WriteLine("Invalid Move!");
                Console.Out.Write("Make your move: ");
                move = Console.ReadLine()[0] - '0' - 1;
            }
            return move;
        }
    }
}
